package main
import(
	"fmt"
)

func main(){
	var arr [5]string = [5]string{"xx","yy","zz","aa","bb"}
	var slice []string = arr[:]
	var slice1 []string = arr[:2]
	slice2 := arr[2:]
	//var slice = arr
	fmt.Println(slice)
	fmt.Println(slice1)
	fmt.Println(slice2)
	slice3 := slice[1:4] //切片再切
	fmt.Println(slice3)
}